package com.hqyj.pojo;

import org.springframework.stereotype.Component;

/**
 * User: Administrator
 * Date: 2022/8/18
 * Time: 16:55
 */
@Component
public class Patient {
    private int hid;
    private User u;
    private Doctor doctor;
    private Nurse nurse;
    private String name;
    private int age;
    private String sex;

    public Patient() {
    }

    public Patient(int hid, User u, Doctor doctor, Nurse nurse, String name, int age, String sex) {
        this.hid = hid;
        this.u = u;
        this.doctor = doctor;
        this.nurse = nurse;
        this.name = name;
        this.age = age;
        this.sex = sex;
    }

    public int getHid() {
        return hid;
    }

    public void setHid(int hid) {
        this.hid = hid;
    }

    public User getU() {
        return u;
    }

    public void setU(User u) {
        this.u = u;
    }

    public Doctor getDoctor() {
        return doctor;
    }

    public void setDoctor(Doctor doctor) {
        this.doctor = doctor;
    }

    public Nurse getNurse() {
        return nurse;
    }

    public void setNurse(Nurse nurse) {
        this.nurse = nurse;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    @Override
    public String toString() {
        return "Patient{" +
                "hid=" + hid +
                ", u=" + u +
                ", doctor=" + doctor +
                ", nurse=" + nurse +
                ", name='" + name + '\'' +
                ", age=" + age +
                ", sex='" + sex + '\'' +
                '}';
    }
}
